Qb-core Installation
Open the shared/items.lua file located in your qb-core folder.
Add the following code snippet to the items file:
qb-core/shared/items.lua:51
['weapon_pistolxm3'] = {['name'] = 'weapon_pistolxm3', ['label'] = 'Pistol XM3', ['weight'] = 1000, ['type'] = 'weapon', ['ammotype'] = 'AMMO_PISTOL', ['image'] = 'weapon_pistolxm3.png', ['unique'] = true, ['useable'] = true, ['description'] = 'Pistol XM3'},
-- Lines below
['weapon_speedradar'] = {
['name'] = 'weapon_speedradar',
['label'] = 'Radar speed gun',
['weight'] = 600,
['type'] = 'weapon',
['ammotype'] = nil,
['image'] = 'weapon_speedradar.png',
['unique'] = true,
['useable'] = false,
['description'] = 'Radar speed gun'
},
- Open the shared/weapons.lua file located in your qb-core folder.
- Add the following code snippet to the weapons file:
qb-core/shared/weapons.lua:51
[`weapon_pistolxm3`] = {['name'] = 'weapon_pistolxm3', ['label'] = 'Pistol XM3', ['weapontype'] = 'Pistol', ['ammotype'] = 'AMMO_PISTOL', ['damagereason'] = 'Pistoled / Blasted / Plaugged / Bust a cap in'},
-- Like this
[`weapon_speedradar`] = {
['name'] = 'weapon_speedradar',
['label'] = 'Speed radar gun',
['weapontype'] = 'Pistol',
['ammotype'] = nil,
['damagereason'] = 'Died'
},
caution
Remember to restart your server after making these changes for them to take effect.